package edu.uis.project.frankszoo.model.card;

import java.util.List;

/**
 * This abstract class extends the Card class and represents the two special cards namely Joker and Mosquito in the game
 * 
 */
public abstract class SpecialCard extends Card {

	protected List<Class> replacementCards;// List containing cards that can be replaced by this card.
	protected boolean multipleReplacements;// Indicator tells whether this card can replace multiple cards.

	/**
	 * Operation returns whether this card can be used to replace other cards in the game
	 * 
	 * @param card
	 * @return boolean value
	 */
	public boolean canReplace(Card card) {
		if (replacementCards.contains(card.getClass())) {
			return true;
		} else {
			return false;
		}
	}

}
